package top.tangyh.lamp.care.vo.save;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description ="数据源统一取值标准接口入参")
public class DsPickInVO implements Serializable {


	@Schema(description = "住院号", required = true)
	@NotBlank(message = "住院号不能为空")
	private String hospitalNumber;

	@Schema(description = "采集时间", required = true)
	@NotNull(message = "采集时间不能为空")
	private Long mappedTime;

	@Schema(description = "采集时间开始，说明：根据采集时间自动计数前几分钟")
	private Long mappedTimeStart;

	@Schema(description = "一级数据源", required = true)
	@NotBlank(message = "一级数据源不能为空")
	private String srcL1;

	@Schema(description = "二级数据源", required = true)
	@NotBlank(message = "二级数据源不能为空")
	private String srcL2;

	@Schema(description = "三级数据源", required = true)
	@NotBlank(message = "三级数据源不能为空")
	private String srcL3;

	public DsPickInVO() {
	}

	public DsPickInVO(String hospitalNumber, Long mappedTime, String srcL1, String srcL2, String srcL3) {
		this.hospitalNumber = hospitalNumber;
		this.mappedTime = mappedTime;
		this.srcL1 = srcL1;
		this.srcL2 = srcL2;
		this.srcL3 = srcL3;
	}

}
